package com.linxianqin.springbootVue.service.impl;

import com.linxianqin.springbootVue.domain.entity.SysRoleMenu;
import com.linxianqin.springbootVue.mapper.SysRoleMenuMapper;
import com.linxianqin.springbootVue.service.SysRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 角色和菜单关联表 服务实现类
 * </p>
 *
 * @author lxq
 * @since 2020-12-13
 */
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements SysRoleMenuService {
    /**
     * 通过角色ID删除角色和菜单关联
     *
     * @param roleId 角色ID
     * @return 结果
     */
    @Override
    public void deleteRoleMenuByRoleId(Long roleId) {
        baseMapper.deleteRoleMenuByRoleId(roleId);
    }
}
